﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum TaskType
    { 
        送信NCP,
        杀怪NPC,
        采集NPC
    }
    class TaskNPC:NPC
    {
        private string taskInfo;
        private TaskType type1;
        public string TaskInfo
        {
            get { return this.taskInfo; }
            set { this.taskInfo = value; }
        }
        public TaskType Type1
        {
            get { return this.type1; }
            set { this.type1 = value; }
        }
        public override void Hello()
        {
            Console.WriteLine("有没有人来帮个忙呀！");
            Console.WriteLine("我叫：{0}，我是{1}中的{2}，任务：{3}",base.Name,base.NpcType,this.type1,this.taskInfo);
        }
        public TaskNPC() { }
        public TaskNPC(string name, NPCType npctype ,TaskType type1, string taskInfo) : base(name,npctype)
        {
            this.Type1 = type1;
            this.TaskInfo = taskInfo; 
        }
    }
}
